package com.sxbbc.common.core.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sxbbc.common.core.entity.jz.AgFreezeMoneyDetail;
import com.sxbbc.common.core.entity.jz.AgMoneyDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxbbc.common.core.utils.BasePage;

import java.math.BigDecimal;

/**
 * <p>
 * 代理共享值明细 服务类
 * </p>
 *
 * @author yuuG
 * @since 2019-08-21
 */
public interface IAgMoneyDetailService extends IService<AgMoneyDetail> {

    BigDecimal querySumCash(Integer agId);

    /***
     * 查询代理收益明细
     * @param cid
     * @return
     */
    IPage<AgMoneyDetail> handleSelectMoneyDetails(BasePage<AgMoneyDetail> page, Integer cid);


    IPage<AgFreezeMoneyDetail> handleSelectFreezeMoneyDetails(BasePage<AgFreezeMoneyDetail> page, Integer cid);
}
